package io.renren.modules.gengyun.dao;

import io.renren.modules.gengyun.entity.SoilConditionHourlyEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author krlin
 * @email 2032153705@qq.com
 * @date 2020-09-17 20:31:48
 */
@Mapper
public interface SoilConditionHourlyDao extends BaseMapper<SoilConditionHourlyEntity> {
    /**
     * 湿度
     * @param cropsRotationPlotId
     * @param beginTime
     * @param endTime
     * @return
     */
    List<Integer> getHumidityByCropRotationId(String cropsRotationPlotId, Long beginTime, Long endTime);
    /**
     * 温度
     * @param cropsRotationPlotId
     * @param beginTime
     * @param endTime
     * @return
     */
    List<Integer> getTemperatureByCropRotationId(String cropsRotationPlotId, Long beginTime, Long endTime);

    List<Map> getSoilLOT(@Param("cropsRotationPlotId") String cropsRotationPlotId,
                         @Param("beginTime") String beginTime,
                         @Param("endTime") String endTime);

}
